<?php

class CategoryController extends Zend_Controller_Action {

        public function init() {
                /* Initialize action controller here */
        }

        public function indexAction() {
                // action body
        }

        public function newAction()
        {
                // action body
                $request = $this->getRequest();
                $form = new Application_Form_Category();
                if ($request->isPost())
                {
                        if ($form->isValid($request->getPost()))
                        {
                                $category = new Application_Model_Category();
                                $category->insert($form->getValues());
                        }
                }
                $this->view->form = $form;
        }

}

